std::pair
From Cppreference
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||
| Utilities library | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| std::pair | ||||||||||||||||||||||||||||||||||||||||||
| Template:cpp/utility/pair/sidebar content | ||||||||||||||||||||||||||||||||||||||||||
| Defined in header
<utility> | ||
| template<
class T1, | ||
std::pair is a struct template that provides a way to store two heterogeneous objects as a single unit.
Member types | |
| Member type | Definition |
first_type
| T1
|
second_type
| T2
|
Member objects | |
| Member name | Type |
first
| T1
|
second
| T2
|